


@extends('system::admin.Layouts.index')
@section('title', '列表')

@section('self_extend_div')
    @parent
@endsection



{{--这里写自己的搜索扩展项--}}
@section('Search_terms')
    @parent

@endsection


{{--编辑自定义--}}
@section('self_currentTableBar')
    @parent

    <a class="layui-btn layui-btn-normal layui-btn-xs data-count-edit" lay-event="jurisdiction">权限管理</a>

@endsection


{{--扩展js--}}
@section('self_extend_js')
    @parent

    <script>

        function self_extend_cols($cols) {

            //对相关想控制的列进行调整。
            for (var i in $cols){
                if($cols[i].toolbar == '#currentTableBar'){
                    $cols[i] = {title: '操作', minWidth: 200, toolbar: '#currentTableBar', align: "center"};
                }
            }

            return $cols;

        }

        //扩展执行js
        function self_extend(obj,layui){
            $ = layui.jQuery, table = layui.table, allJs = layui.allJs, data = obj.data;
            if(obj.event == 'jurisdiction'){
                //iframe层
                layer.open({
                    type: 2,
                    title: '账号列表',
                    shadeClose: true,
                    shade: 0.8,
                    area: ['90%', '90%'],
                    content: '/chinadmin/admin/role/roleController?id=' + obj.data.id
                });
            }

        }

    </script>

@endsection



